#ifndef __BSP_RTC_H__
#define __BSP_RTC_H__

#include "stm32f4xx_ll_rtc.h"
#include "time.h"

uint32_t rtc_to_timestamp();
void timestamp_to_rtc(uint32_t timestamp, LL_RTC_TimeTypeDef* gTime, LL_RTC_DateTypeDef* gDate);
void rtc_set(LL_RTC_TimeTypeDef* sTime, LL_RTC_DateTypeDef* sDate);
void rtc_get(LL_RTC_TimeTypeDef* gTime, LL_RTC_DateTypeDef* gDate);

#endif /* __BSP_RTC_H__ */
